/**
 * \file dmxcon/drivers/dmx4all.h
 * \author Christian Spoo
 * \date 02.08.2010
 *
 * DMX4ALL device driver
 */

#ifndef __DMXCON__DMX4ALL_H__
#define __DMXCON__DMX4ALL_H__

#include <dmxcon/device.h>

#ifdef __cplusplus
extern "C" {
#endif

struct device_t *dmx4all_create(const char *filename);
int dmx4all_destroy(struct device_t *device);

int dmx4all_write_command(struct device_t *device, const char *command);

int dmx4all_set_range(struct device_t *device, unsigned short end_addr);
int dmx4all_set_channel(struct device_t *device, unsigned short channel, unsigned char value);

int dmx4all_refresh(struct device_t *device);

#ifdef __cplusplus
}
#endif

#endif

